package com.itheima;

import com.itheima.dao.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class mian {
    public static void main(String[] args) {



                ApplicationContext ctx = new ClassPathXmlApplicationContext
                        ("applicationContext.xml");
                Student s = (Student)ctx.getBean("student");
                s.addStudent("dragon");


    }
}
